package com.pr.makfilm.user.navigation;

import com.pr.makfilm.core.navigation.NavigateAction;
import com.pr.makfilm.domain.Room;
import com.pr.makfilm.user.api.UserApiKeys;
import com.pr.makfilm.user.pages.room.create.SummaryRoomPage;
import org.apache.wicket.request.mapper.parameter.PageParameters;

/**
 * Created with IntelliJ IDEA.
 * User: Pawel
 * Date: 09.10.13
 * Time: 17:39
 * To change this template use File | Settings | File Templates.
 */
public class NavigateToSummaryRoomPage extends NavigateAction
{
   private Room room;

   public NavigateToSummaryRoomPage(Room room)
   {
      super(SummaryRoomPage.class);
      this.room = room;
   }

   @Override
   public PageParameters getPageParameters()
   {
      PageParameters pageParameters = new PageParameters();
      pageParameters.add(UserApiKeys.SID_KEY, room.getSid());
      return pageParameters;
   }
}
